#ifndef __STUDENT_H__
#define __STUDENT_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

#define SIZE_ID 20
#define SIZE_NAME 20
#define SIZE_STU 30

struct student {
    char    name[SIZE_NAME];
    char    id[SIZE_ID];
    int     age;
    float   score;
};

struct prime_class {
    struct student stu[SIZE_STU];
    int stu_num;
};

void add(struct prime_class *);
void list(struct prime_class *);
void update(struct prime_class *);
void del(struct prime_class *);
void sort(struct prime_class *);

#define ADD 1
#define DEL 2
#define UPDATE 3
#define LIST 4
#define SORT 5
#define QUIT 6


#endif
